#ifndef DGRAPHICSVIEW_H
#define DGRAPHICSVIEW_H

class DDocument;
class DClassEntity;

class DGraphicsView : public QWidget
{
	Q_OBJECT

public:
	DGraphicsView(QWidget *parent = 0);
	~DGraphicsView();

	void setDocument(DDocument* pDoc);
protected:
	void paintEvent(QPaintEvent*);
private:
	DDocument* m_pDoc;
	void drawClass(QPainter& painter, DClassEntity* pClass);
	void drawClassGeometry();
};

#endif // DGRAPHICSVIEW_H
